package com.qiaoan.back.dao;

import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * 增删改查通用方法
 * Created by eversec on 2017/5/12.
 */
public interface BaseMapper<T> extends SqlMapper {

    public void add(T entity) throws DataAccessException;

    public void edit(T entity) throws DataAccessException;

    public void remove(T entity) throws DataAccessException;

    public T get(T entity) throws DataAccessException;

    public List<T> getList(T entity) throws DataAccessException;

    public Integer getListCount(T entity) throws DataAccessException;


}
